package com.yuzhenxin.coursesystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;

@Getter
@Setter
@Builder
@Schema(title = "教师开课表")
@TableName("schedule")
public class ScheduleDO {

    @Id
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(title = "教师编号")
    @TableField("teacher_number")
    private Integer teacherNumber;

    @Schema(title = "教师姓名")
    @TableField("teacher_name")
    private String teacherName;

    @Schema(title = "课程编号")
    @TableField("course_number")
    private Integer courseNumber;

    @Schema(title = "课程名称")
    @TableField("course_name")
    private String courseName;

    @Schema(title = "课程容量")
    @TableField("capacity")
    private Integer capacity;

}
